package com.test.demo.springbootdemo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
//mybatis扫描Mapper
@MapperScan("com.test.demo.springbootdemo.mapper")
@EnableTransactionManagement
public class SpringbootdemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringbootdemoApplication.class, args);
    }
}

//    CREATE TABLE `user` (
//        `id` bigint(20) NOT NULL COMMENT '主键ID',
//        `name` varchar(30) DEFAULT NULL COMMENT '姓名',
//        `age` int(11) DEFAULT NULL COMMENT '年龄',
//        `email` varchar(50) DEFAULT NULL COMMENT '邮箱',
//        PRIMARY KEY (`id`)
//        ) ENGINE=InnoDB DEFAULT CHARSET=utf8
